<?php

class App_Forms_UserForm extends Zend_Form
{
	public function __construct()
	{
		$userNameField = new Zend_Form_Element_Text('Username');
		$userNameField->setLabel('Username');
			
		$pwdField = new Zend_Form_Element_Password('Password');
		$pwdField->setLabel('Password');
			
		$fNameField = new Zend_Form_Element_Text('Firstname');
		$fNameField->setLabel('First Name');
		
		$lNameField = new Zend_Form_Element_Text('Lastname');
		$lNameField->setLabel('Last Name');
		
		$emailField = new Zend_Form_Element_Text('Email');
		$emailField->setLabel('Email Address');
		
		$submit = new Zend_Form_Element_Submit('Register');
		
		$this->addElements(array(
			$userNameField,
			$pwdField,
			$fNameField,
			$lNameField,
			$emailField,
			$submit
		));
		
		$this->setDecorators(array(
			'FormElements',
			array('HtmlTag', array('tag' => 'dl')),
			'Form'
		));
	}
}